<template>
  <div>
    <van-tabbar v-model="active" route border>
      <van-tabbar-item replace to="/home" icon="home-o">废品回收</van-tabbar-item>
      <van-tabbar-item replace to="/public" icon="orders-o">热心公益</van-tabbar-item>
      <van-tabbar-item replace to="/shop" icon="friends-o">积分商城</van-tabbar-item>
      <van-tabbar-item replace to="/my" icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // tabbar 的激活项
      active: 0
    }
  }
}
</script>

<style lang="less" scoped>
.van-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-top: 1px solid #666;
}
</style>
